Repository navigation
fix(fleet-queue): fallback fetch_markers errors instead of silently truncating at 1,000 comments - #9056
Merged
Conversation
…runcating at 1,000 comments (#9044)
developing-today
Bot
requested review from
a team and
dezren39
as code owners
November 12, 2026 22:18
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #9044
fallback.rsfetch_markerspaged issue comments 1..=10 at per_page=100 and returnedOk(markers)when the 10th page was still full -- markers past 1,000 comments were silently dropped, so a live fallback claim could read as absent (design #6622 contract rule 3: truncation is never silent).Change
collect_markerswith the page fetch injected, so the bound behavior is unit-testable;fetch_markerssupplies the realgh apifetch. Page size / page bound are now named constants (MARKER_PAGE_SIZE/MAX_MARKER_PAGES).collect_markersreturns an explicit error ("refusing to return a truncated marker set") instead of the partial set. Every existing caller already propagatesfetch_markerserrors (die(EXIT_TRANSPORT)/?), so no caller changes were needed.Tests (oracle: issue #9044 acceptance)
collect_markers_full_last_page_is_a_truncation_error-- ten full pages error explicitly, after exactly MAX_MARKER_PAGES fetches.collect_markers_under_the_bound_is_unchanged-- full page + short page returns all markers in order, skips non-marker comments, stops at the short page; an empty first page is a complete empty read.cargo test -p fleet-queue --all-features --lib-- 303 passed, 0 failed (run on the laptop through fleet-build-lock).Queue: task 15337, lane code-b.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.